<?php


namespace app\api\controller;


use app\BaseController;
use app\middleware\Auth;
use think\middleware\AllowCrossDomain;

class Home extends BaseController
{
    protected $middleware = [AllowCrossDomain::class,Auth::class];
    public function index(){

    }
    public function main(){
        $data=\think\facade\Db::query("select VERSION() as version");
        $mysql_version=$data[0]['version'];
        return $this->msg(1,'','',[
            "php_os"=>PHP_OS,
            "timezone"=>date_default_timezone_get() .' '. date('Y-m-d H:i:s'),
            "php_version"=>PHP_VERSION,
            "mysql_version"=>$mysql_version,
        ]);
    }
}